<?
print_r($clienti);
?>

<div id="content"> 
    <h1 class="pagetitle">Gestione Clienti</h1>
    <a href="/admin/" id="rss-posts">Indietro</a> 
    <div class="post">
    	<h2 class="title"><? echo "Anagrafiche Clienti";?></h2>
      <p class="byline">
      	<small>
      		<p>
	      	<a  href="/admin/clienti.php?mod=new"><img align="absmiddle" src="/_admin/img/edit_add.png" border="0" /></a> <a target="negozio" href="/admin/clienti.php?mod=new">Inserisci cliente</a> &nbsp;&nbsp;
            
            </p>
      		
      </small>
      </p>

    
    
      
     <table class="tabellaList" cellpadding="0" cellspacing="0">
     <tr >
      	  
      	  <td class="rigaList" width="110px">user</td>
      	  <td class="rigaList" width="250px">nome</td>	      
	      <td class="rigaList" width="240px">email</td>
	      <td class="rigaList" width="140px">ultimo acc</td>
	      <td class="rigaList" ></td> 
      </tr>
 <?
	if(count($clienti)>0)
	{
		foreach($clienti as $idc=>$cliente)
		{ 
 ?>     
      <tr >
      	  
      	  <td class="rigaList" align="left"><? echo $cliente[username];?>   &nbsp; </td>
      	  <td class="rigaList" align="left"><? echo $cliente[nome];?> <? echo $cliente[cognome];?></td>	      
	      <td class="rigaList" align="left"><? echo $cliente[email];?></td>
	      <td class="rigaList" align="left"><? echo date('j/n/y H:i',$cliente[last_login]);?></td>	     
	      <td class="rigaList" align="right" nowrap><a href="clienti.php?id_cliente=<? echo $idc;?>&mod=mod"><img  src="/_admin/img/edit.png" border="0" /></a>
	         <a href="clienti.php?mod=del&id_cliente=<? echo $idc;?>"><img  src="/_admin/img/cancel.png" border="0" /></a>
	      </td> 
      </tr>
<?
		}
	}
	else 
	{
?>
	  <tr>
	      <td colspan="5">
	        Nessun cliente trovato.
	      </td>
      </tr>
<?		
	}
?>
      </table> 
      
    </div>
    
    
    
    
   
  </div>